<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        "use strict" //使用严肃

        const Object_name={name:"tw",age:20};
        Object.freeze(Object_name);//冻结对象,也可以锁对象的特有属性perperties
          //不能更改
        //   Object_name.age=250;  //怎么给用户一个提示呢？==>使用严肃

        console.log(Object_name);
    </script>
    
</body>
</html>